#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QStackedLayout>
#include "CommonHelper/basewindow/basewindow.h"
#include "Admin/adminwidget.h"
#include "User/userwidget.h"
#include "loginwidget.h"

namespace Ui {
class MainWidget;
}

class MainWidget : public BaseWindow
{
    Q_OBJECT

public:
    explicit MainWidget(BaseWindow *parent = nullptr);
    ~MainWidget();

    void setUsetInfo(const UserInfo &userInfo);

public slots:

private:
    AdminWidget *m_pAdminWidget;
    UserWidget  *m_pUserWidget;
    LoginWidget *m_pLoginWidget;
    QStackedLayout *m_pStackedLayout;
    Ui::MainWidget *ui;
};

#endif // MAINWIDGET_H
